func runtime.alignDown
19 uses
runtime (current package)
malloc.go#L1839: setTinyBlockContext(unsafe.Pointer(alignDown(uintptr(x), maxTinySize)))
mbitmap.go#L308: tp.addr = tp.elem + alignDown(n-(tp.elem-oldelem), ptrBits*goarch.PtrSize)
mbitmap.go#L310: tp.addr += alignDown(n, ptrBits*goarch.PtrSize)
mbitmap.go#L819: size -= alignDown(uintptr(cheaprand())%size, goarch.PtrSize)
mcheckmark.go#L114: wordIdx := (obj - alignDown(obj, heapArenaBytes)) / goarch.PtrSize
mem_linux.go#L108: end := alignDown(uintptr(v)+n, physHugePageSize)
mgcmark_greenteagc.go#L281: base := alignDown(p, gc.PageSize)
mgcscavenge.go#L976: hugePageBelow := uint(alignDown(uintptr(start), pagesPerHugePage))
mheap.go#L1614: h.curArena.base = alignDown(h.curArena.base|(offset<<logPallocChunkBytes), pallocChunkBytes)
mheap.go#L1656: randNumPages := alignDown(randOffset, pageSize) / pageSize
mheap.go#L2367: ptr = alignDown(ptr, maxTinySize)
mpagealloc.go#L183: return int(alignDown(uintptr(lo), e)), int(alignUp(uintptr(hi), e))
mpagealloc.go#L370: base = alignDown(base, pallocChunkBytes)
mpagealloc_64bit.go#L118: baseOffset := alignDown(uintptr(sumIdxBase)*pallocSumBytes, physPageSize)
mpagealloc_64bit.go#L207: needMin := alignDown(uintptr(chunkIndex(base)), physPageSize/scSize)
mpagecache.go#L138: base: chunkBase(ci) + alignDown(uintptr(j), 64)*pageSize,
mpagecache.go#L155: base: alignDown(addr, 64*pageSize),
mranges.go#L89: limit := alignDown(a.limit.addr()-len, uintptr(align))
stubs.go#L381: func alignDown(n, a uintptr) uintptr {
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |